?php echo $session->flash(); ?>

<div id="content-table-inner">
	<div id="table-content">
	<form id="page" method="post" action="/users" enctype="application/x-www-form-urlencoded">
	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">

		<tr>
			<th class="table-header-check"><a id="toggle-all" ></a> </th>
			<th class="table-header-repeat line-left minwidth-1 id"><?php echo $html->link(__('ID', true),'#'); ?></th>
			<th class="table-header-repeat line-left"><?php echo $html->link(__('Username', true),'#'); ?></th>
			<th class="table-header-repeat line-left"><?php echo $html->link(__('Fullname', true),'#'); ?></th>
			<th class="table-header-repeat line-left"><?php echo $html->link(__('Email', true),'#'); ?></th>
			<th class="table-header-repeat line-left"><?php echo $html->link(__('Date', true),'#'); ?></th>
			<th class="table-header-repeat line-left"><?php echo $html->link(__('Action', true),'#'); ?></th>
		</tr>
		<tbody>
			<?php foreach ($users as $item) {?>
			<tr>
				<td><input type="checkbox" value="<?php echo $item['User']['id']; ?>" /></td>
				<td><?php echo $item['User']['id']; ?></td>
				<td><?php echo $item['User']['username']; ?></td>
				<td><?php echo $item['User']['fullname']; ?></td>
				<td><?php echo $item['User']['email']; ?></td>
				<td><?php echo $item['User']['date']; ?></td>
				<td  class="options-width">
					<a href="<?php echo Router::url(array('controller' => 'users','action' => 'edit', 'id' => $item['User']['id'])); ?>" title="Edit" class="icon-1 info-tooltip"></a>
					<a href="<?php echo Router::url(array('controller' => 'users','action' => 'del', 'id' => $item['User']['id'])); ?>" title="Delete" class="icon-2 info-tooltip"></a>
				</td>
			</tr>
			<?php } ?>
		</tbody>
	</table>
	</form>
	</div>
	
	<div id="actions-box">
		<!-- 
		<?php echo $html->link(__('Delete', true),array('action'=>'delete'), array('class' => 'action-slider')); ?>
		-->
		<?php echo $html->link(__('Add New', true),array('action'=>'edit'), array('class' => 'action-slider')); ?>
		<div class="clear"></div>
	</div>
	
</div>
